package designpatterns.prototypepattern;


public class Person implements Prototype
{

   public String name;

    public Person(String name)
    {
        this.name = name;
    }

    @Override
    public Prototype doClone()
    {
        return new Person(name);
    }

    @Override
    public String toString()
    {
        return "This person is named " + name;
    }
}
